package com.wodsy.phoenix.dataobject.orderc.model;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * Express entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_express", catalog = "orderc")
public class Express extends PhoenixObject {

	// Fields

	private Long id;
	private Long orderId;
	private String expressNo;
	private String expressName;
	private String expressCode;
	private Timestamp createTime;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public Express() {
	}

	/** minimal constructor */
	public Express(Long id, Long orderId) {
		this.id = id;
		this.orderId = orderId;
	}

	/** full constructor */
	public Express(Long id, Long orderId, String expressNo, String expressName,
			String expressCode, Timestamp createTime, Timestamp updateTime) {
		this.id = id;
		this.orderId = orderId;
		this.expressNo = expressNo;
		this.expressName = expressName;
		this.expressCode = expressCode;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "order_id", nullable = false)
	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	@Column(name = "express_no", length = 30)
	public String getExpressNo() {
		return this.expressNo;
	}

	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}

	@Column(name = "express_name", length = 20)
	public String getExpressName() {
		return this.expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}

	@Column(name = "express_code", length = 50)
	public String getExpressCode() {
		return this.expressCode;
	}

	public void setExpressCode(String expressCode) {
		this.expressCode = expressCode;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}